def remove_duplicates(items):
    new_items = []
    for i in items:
        if i not in new_items:
            new_items.append(i)
        if i in new_items:
            continue
    return new_items

def reverse_list(items):
    reversed_items = []
    for i in range(len(items) - 1, -1, -1):
        reversed_items.append(items[i])
    return reversed_items

def count_occurrences(items, target):
    a = 0
    for i in items:
        if i ==target:
            a=a+1
        if i !=target:
            a=a
    return a
